﻿/* ----------------------------------------------------------------------------
 * Copyright (c) Philip Stears 
 *
 * This source code is subject to terms and conditions of the Microsoft Public 
 * License (Ms-PL).
 * 
 * By using this source code in any fashion, you are agreeing to be bound 
 * by the terms of the Microsoft Public License.
 * 
 * To request a copy of the Microsoft Public License, send a request by email
 * to license@connectbasic.net.
 *
 * This notice must not be removed from this software.
 * ---------------------------------------------------------------------------- */

namespace ConnectBasic.Shell.Hosting
{
    using System.Collections.Generic;

    /// <summary>
    /// Represents a collection of items in the project store.
    /// </summary>
    public interface IProjectStoreItemCollection : IEnumerable<IProjectStoreItem>
    {

        /// <summary>
        /// Gets the number of items in the collection.
        /// </summary>
        int Count { get; }

        /// <summary>
        /// Gets the item at the given index.
        /// </summary>
        /// <param name="index">The index at which to get the item.</param>
        /// <returns></returns>
        IProjectStoreItem this[int index] { get; }

        /// <summary>
        /// Adds a new item to the collection.
        /// </summary>
        /// <param name="itemName">The name of the item to add.</param>
        /// <returns></returns>
        IProjectStoreItem Add(string itemName);
    }
}
